import request from '@/utils/request'

// 查询门店列表
export function listStores(query) {
  return request({
    url: '/course/stores/list',
    method: 'get',
    params: query
  })
}


// 查询门店列表
export function allStores(query) {
  return request({
    url: '/course/stores/list/all',
    method: 'get',
    params: query
  })
}



// 查询门店详细
export function getStores(id) {
  return request({
    url: '/course/stores/' + id,
    method: 'get'
  })
}

// 新增门店
export function addStores(data) {
  return request({
    url: '/course/stores',
    method: 'post',
    data: data
  })
}

// 修改门店
export function updateStores(data) {
  return request({
    url: '/course/stores',
    method: 'put',
    data: data
  })
}

// 删除门店
export function delStores(id) {
  return request({
    url: '/course/stores/' + id,
    method: 'delete'
  })
}
